﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chowpoo.Sql;
using CourseSystem.Core.Entities;
using CourseSystem.Core.SqlServerDAL;

namespace CourseSystem.Core.BLL
{
    public class ImgResourcesBLL : CommonBLL<ImgResourcesInfo, ImgResourcesDAL>
    {
        public static IQueryable<ImgResourcesInfo> GetList(byte type)
        {
            var re = GetList();
            if (type == 0)
                return re;
            return GetList().Where(o => o.Type == type);
        }
    }
}
